<%@ taglib uri="/WEB-INF/struts-bean" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>

<table class="tbForm">
	<tr>
		<td align="right" width="20%"><bean:message key="formulario.venda.cliente" />: </td>
		<td align="left" width="80%"><bean:write name="cliente" property="nome"/></td>
	</tr>
</table>

<table class="tbForm">
	<logic:empty name="vendas">
	<tr>
		<td align="left">
			<bean:message key="mensagem.venda.cliente.vazio"/>
		</td>
	</tr>
	</logic:empty>
	<logic:notEmpty name="vendas">
	<tr>
		<th width="70%"><bean:message key="formulario.venda.dataVenda"/> e <bean:message key="formulario.venda.total"/></th>
		<th width="30%">&nbsp;</th>
	</tr>
	<logic:iterate id="venda" name="vendas">
	<tr>
		<td align="left">
			<html:img pageKey="sistema.ico.marcador" align="absmiddle"/>
			<bean:write name="venda" property="dataVenda" formatKey="sistema.padrao.data"/> - <bean:message key="sistema.moeda"/> <bean:write name="venda" property="valorTotal"/>
		</td>
		<td align="center">
			<html:link action="/sistema/venda/pagamento/listarPagamentosDaVenda" paramId="vendaId" paramName="venda" paramProperty="vendaId">
				<html:img pageKey="sistema.ico.entradas" altKey="menu.vendas.pagamentos.listar" align="absmiddle"/>
				<bean:message key="menu.vendas.pagamentos.listar"/>
			</html:link>
		</td>
	</tr>
	</logic:iterate>
	</logic:notEmpty>
</table>
